import { request } from '@/utils/request'

export function addEditArticle(data) {
  return request('post', 'articles/addEditArticle', data)
}

export function getAllArticle(data) {
  return request('post', 'articles/all', data)
}

export function delArticle(data) {
  return request('post', `articles/delArticle/${data.id}`, data)
}

export function getDetail(data) {
  return request('get', `articles/detail/${data.id}`, data)
}
